/*
 * Interface gráfica com o menu de opções para o aluno.
 */
package amanda_gabriel_isabella_lucivania_monica.View;

import amanda_gabriel_isabella_lucivania_monica.Model.Dao.DaoBaseImpl;

/**
 * Interface gráfica de login do aluno
 *
 * @author lucy
 */
public class LoginAlunoIG extends javax.swing.JFrame {

    /**
     * Cria um novo form LoginProfessorIG
     *
     * @param loginIG
     * @param daoBase
     */
    private LoginIG telaLogin;
    private DaoBaseImpl daoBaseImpl;

    public LoginAlunoIG(LoginIG tela, DaoBaseImpl daoBaseImpl) {
        initComponents();
        this.telaLogin = tela;
        this.daoBaseImpl = daoBaseImpl;
    }

    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jMenu1 = new javax.swing.JMenu();
        jLEstarLogadoComoProfessor = new javax.swing.JLabel();
        jLAluno = new javax.swing.JLabel();
        jBRealizarLogout = new javax.swing.JButton();
        jPanel1 = new javax.swing.JPanel();
        jLDesejaFazer = new javax.swing.JLabel();
        jSeparator2 = new javax.swing.JSeparator();
        jLabel9 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        jSeparator1 = new javax.swing.JSeparator();
        jMenuBar1 = new javax.swing.JMenuBar();
        jMConsultas = new javax.swing.JMenu();
        jMConsultasNotas = new javax.swing.JMenuItem();
        jMConsultasFaltas = new javax.swing.JMenuItem();
        jMConsultasMencaoFinal = new javax.swing.JMenuItem();

        jMenu1.setText("jMenu1");

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("Menu de opções para o aluno");

        jLEstarLogadoComoProfessor.setText("Atualmente você está logado como:");

        jLAluno.setForeground(new java.awt.Color(78, 189, 78));
        jLAluno.setText("Aluno");

        jBRealizarLogout.setText("Logout");
        jBRealizarLogout.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBRealizarLogoutActionPerformed(evt);
            }
        });

        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(">> Bem-Vindo  ao Sistema  de Controle Acadêmico  da  UFLN <<"));
        jPanel1.setForeground(new java.awt.Color(231, 238, 242));
        jPanel1.setToolTipText("Exemplo");

        jLDesejaFazer.setText("Escolha uma opção no menu acima.");

        jLabel9.setFont(new java.awt.Font("Ubuntu", 0, 10)); // NOI18N
        jLabel9.setText("Desenvolvido por Amanda, Gabriel, Isabella, Lucivânia e Mônica");

        jLabel8.setFont(new java.awt.Font("Ubuntu", 0, 10)); // NOI18N
        jLabel8.setText("Discentes - Ciência da Computação - UFSJ");

        jLabel7.setFont(new java.awt.Font("Ubuntu", 0, 10)); // NOI18N
        jLabel7.setText("Copyright © 2013. Todos os direitos reservados.");

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jSeparator2)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(jLDesejaFazer)
                        .addContainerGap())
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                        .addGap(0, 446, Short.MAX_VALUE)
                        .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 322, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(447, 447, 447))))
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGap(496, 496, 496)
                        .addComponent(jLabel7))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGap(508, 508, 508)
                        .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 209, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(0, 0, Short.MAX_VALUE))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(46, 46, 46)
                .addComponent(jLDesejaFazer)
                .addGap(445, 445, 445)
                .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGap(78, 78, 78))
        );

        jMConsultas.setText("Consultas");

        jMConsultasNotas.setText("Notas");
        jMConsultasNotas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMConsultasNotasActionPerformed(evt);
            }
        });
        jMConsultas.add(jMConsultasNotas);

        jMConsultasFaltas.setText("Faltas");
        jMConsultasFaltas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMConsultasFaltasActionPerformed(evt);
            }
        });
        jMConsultas.add(jMConsultasFaltas);

        jMConsultasMencaoFinal.setText("Menção Final");
        jMConsultasMencaoFinal.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMConsultasMencaoFinalActionPerformed(evt);
            }
        });
        jMConsultas.add(jMConsultasMencaoFinal);

        jMenuBar1.add(jMConsultas);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(0, 1385, Short.MAX_VALUE)
                        .addComponent(jLEstarLogadoComoProfessor)
                        .addGap(29, 29, 29)
                        .addComponent(jLAluno)
                        .addGap(19, 19, 19)
                        .addComponent(jBRealizarLogout, javax.swing.GroupLayout.PREFERRED_SIZE, 185, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(43, 43, 43))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap())))
            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jSeparator1, javax.swing.GroupLayout.DEFAULT_SIZE, 1949, Short.MAX_VALUE)
                    .addContainerGap()))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(58, 58, 58)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLEstarLogadoComoProfessor)
                    .addComponent(jLAluno)
                    .addComponent(jBRealizarLogout))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addGap(358, 358, 358)
                    .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(415, Short.MAX_VALUE)))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jBRealizarLogoutActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBRealizarLogoutActionPerformed
        setVisible(false);
        telaLogin.setVisible(true);
    }//GEN-LAST:event_jBRealizarLogoutActionPerformed

    private void jMConsultasFaltasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMConsultasFaltasActionPerformed
        ConsultarFaltasIG consultarFaltas = new ConsultarFaltasIG(daoBaseImpl);
        consultarFaltas.setVisible(true);
    }//GEN-LAST:event_jMConsultasFaltasActionPerformed

    private void jMConsultasMencaoFinalActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMConsultasMencaoFinalActionPerformed
        ConsultarMencaoFinalIG consultarMencaoFinal = new ConsultarMencaoFinalIG(daoBaseImpl);
        consultarMencaoFinal.setVisible(true);
    }//GEN-LAST:event_jMConsultasMencaoFinalActionPerformed

    private void jMConsultasNotasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMConsultasNotasActionPerformed
        ConsultarNotasIG consultarNotasIG = new ConsultarNotasIG(daoBaseImpl);
        consultarNotasIG.setVisible(true);
    }//GEN-LAST:event_jMConsultasNotasActionPerformed
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jBRealizarLogout;
    private javax.swing.JLabel jLAluno;
    private javax.swing.JLabel jLDesejaFazer;
    private javax.swing.JLabel jLEstarLogadoComoProfessor;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JMenu jMConsultas;
    private javax.swing.JMenuItem jMConsultasFaltas;
    private javax.swing.JMenuItem jMConsultasMencaoFinal;
    private javax.swing.JMenuItem jMConsultasNotas;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JSeparator jSeparator2;
    // End of variables declaration//GEN-END:variables
}
